package org.datastealer.service.impl;

import org.datastealer.bean.Schema;
import org.datastealer.dao.api.SchemaDao;
import org.datastealer.service.SchemaService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Note：
 *
 * @author ：mengjw
 * @description：数据库表Schema服务实现
 * @date ：Created in 2020/8/22
 */
@Service
public class SchemaServiceImpl implements SchemaService {

    @Lazy
    @Autowired
    private SchemaDao schemaDao;

    @Override
    public List<Schema> getAllSchemas() {
        return schemaDao.getAllSchemas();
    }

}